package com.pubinfo.passbook.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.pubinfo.passbook.common.entity.TContractInvoiceApply;
import com.pubinfo.passbook.common.model.dto.contract.FeeListParam;
import com.pubinfo.passbook.common.model.vo.contract.ContractRelateDocVo;
import com.pubinfo.passbook.common.model.vo.contract.FapiaoDetailVo;
import com.pubinfo.passbook.common.model.vo.contract.FeeCollectionListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author admin
 * @description 针对表【t_contract_invoice_apply(发票申请单)】的数据库操作Mapper
 * @createDate 2021-12-06 14:45:14
 * @Entity com.pubinfo.passbook.common.entity.TContractInvoiceApply
 */
public interface TContractInvoiceApplyMapper extends BaseMapper<TContractInvoiceApply> {

    IPage<FeeCollectionListVo> selectUseableList(IPage<FeeCollectionListVo> page, @Param("param") FeeListParam param);

    /**
     * 发票详情
     */
    List<FapiaoDetailVo> invoiceDetail(@Param("contractId") Integer contractId);

    /**
     * 获取合同相关单据
     */
    List<ContractRelateDocVo> getContractRelateDoc(@Param("contractId") Integer contractId);
}




